﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="column_all.aspx.cs" Inherits="admin_manager_column_all" %>

<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
	<head id="Head1" runat="server">
		<title>Lomboz JSP</title>
		<link href="../css/default.css" rel="stylesheet" type="text/css" />
        <link rel="StyleSheet" href="../js/dtree.css"	type="text/css" />
		<script type="text/javascript" src="../js/dtree.js"></script>

	</head>
	<body bgcolor="#FFFFFF">
    <table width=100% height="600" border="0" align="left" cellpadding="0"
			cellspacing="0" bgcolor="#FFFFFF">
			<tr>
			<td height="413" valign="top">
					<table border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td height="32" valign="bottom">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="30" align="center">
											<img src="../images/icon_channel.gif" width="12"
												height="12" />
										</td>
										<td align="left" width="154">
											系统管理
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td height="12"></td>
						</tr>
						<tr>
							<td height="1" bgcolor="#AB8C78"></td>
						</tr>
						<tr>
							<td height="2" bgcolor="#C0B9AF"></td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
						</tr>
						<tr>
							<td valign="top">
								<table border="0" cellspacing="0" cellpadding="0">
                                    <tr>
										<td>
<script type="text/javascript">
managertree = new dTree('managertree');
managertree.config.useCookies = true;
managertree.add(0,-1,'系统管理','','','mainFrame');
<%
for(int i=0;i<datalist.Count;i++){
OgilvyOne.Model.UserColumnModel uc = (OgilvyOne.Model.UserColumnModel)datalist[i];
int columnid= uc.Columnid;
string linkurl = uc.Columnurl ; 
if(linkurl==null|| linkurl=="" || linkurl=="0"){
	linkurl = "";
}else{
if(uc.Columnurl.IndexOf("?")>-1){
    linkurl = ",'" + uc.Columnurl+"&layerid="+ uc.Layerid + "','','mainFrame'";
}else{
    linkurl = ",'" + uc.Columnurl+"?layerid="+ uc.Layerid + "','','mainFrame'";
}
}
if(!isDynamicPopedom()){
  if(PopedomValidateHtml(uc.Layerid,"show")){
    if (uc.Parentid==0){%>
	    managertree.add(<%=columnid%>,0,'<%=uc.Columnname%>'<%=linkurl%>);
   <% }else{%>
	managertree.add(<%=columnid%>,<%=uc.Parentid%>,'<%=uc.Columnname%>'<%=linkurl%>);
	<%} }
}else{
    if (uc.Parentid==0){%>
	managertree.add(<%=columnid%>,0,'<%=uc.Columnname%>'<%=linkurl%>);
   <% }else{%>
	managertree.add(<%=columnid%>,<%=uc.Parentid%>,'<%=uc.Columnname%>'<%=linkurl%>);
	<%}
}
}
%>
document.write(managertree);
</script>

											<br>
											<br>
										</td>
									</tr>
									<tr>
										<td height="35"></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="center" valign="top">
								<p>
									&nbsp;
								</p>
								<p>
									&nbsp;
								</p>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>


	</body>
</html>


